package cn.edu.gench.learn.day5;

import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/7.
 */
public class MapTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<String,String>();
        map.put("name","zhuzhongbiao");
        map.put("age","16");
        map.put("gender","男");
        map.put("addr","建桥学院");
        map.remove("age");
        for (String key : map.keySet()) {
            System.out.println(MessageFormat.format("key={0} value={1}",key,map.get(key)));
            System.out.println("key="+key+" value="+map.get(key));
        }

    }
}
